package cn.jwelll.bxcstock.ui.carin.upload;


import cn.jwelll.bxcstock.base.BaseView;
import cn.jwelll.bxcstock.bean.TrainUploadRequest;
import cn.jwelll.bxcstock.viewmodel.itemmodel.ItemCarInPreviewModel;
import cn.jwelll.bxcstock.viewmodel.itemmodel.UploadDetailModel;

import java.util.List;

public interface CarInUploadContract {
    interface Presenter {
        void carUpload(String id, String waybillCode, String driverName, String carNum, String qeueuNumber, String loadingPoint, double weight, List<UploadDetailModel> materials);

        void trainUpload(TrainUploadRequest request);

        void validateMaterial(String materialCode,String name,String paiHao,String specification,String waybillKey,List<ItemCarInPreviewModel> targetList);
    }

    interface View extends BaseView {
        void uploadSuccess();

        void validateMaterialSuccess(boolean isRed);
    }
}
